class VideoController {
    def securityService

    def postService

    def index = { }
    def vidaoShow = {
        def user = securityService.getCurrentUser()
        def posts = postService.getUserPosts(user, params)
        params.totalPosts = posts.totalCount

        [postInstanceList: posts, params: params,site:Site.findByAuthor(user)]
    }
}
